package cn.tedu.ivos.base.exception;

import cn.tedu.ivos.base.enums.StatusCode;
import lombok.Getter;

public class ServiceException extends RuntimeException {
    @Getter
    private StatusCode statusCode;

    public ServiceException(){}
    public ServiceException(StatusCode statusCode){
        this.statusCode = statusCode;
    }
    public ServiceException(String message){
        super(message);
    }
    public ServiceException(Throwable cause) {
        super(cause);
    }

}
